﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchEnlistRecord.ascx.vb"
    Inherits="WebForm_ManageEnlistRecord_SearchEnlistRecord" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblTrainingBHour" runat="server" Text="<%$ Resources:TrainingWHour %>"></asp:Label>
        </td>
        <td align="left">
            <asp:TextBox ID="txtTrainingBHour" runat="server"></asp:TextBox>
        </td>
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="False" meta:resourcekey="gv"
    AllowHoverEffect="True" MySortDirection="Ascending" DataSourceID="ObjectDataSource1"
    AutoGenerateColumns="False" DataKeyNames="ApplicationID" AllowSorting="True">
    <Columns>
        <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfOrganizationName"
            SortExpression="OrganizationName">
            <headerstyle width="100px" />
            <itemstyle width="100px" />
        </asp:BoundField>
        <asp:BoundField DataField="EnlistName" meta:resourcekey="bfEnlistName" SortExpression="EnlistName">
            <headerstyle width="120px" />
            <itemstyle width="120px" />
        </asp:BoundField>
        <%--        <asp:BoundField DataField="Description" meta:resourcekey="bfDescription" SortExpression="Description">
            <headerstyle width="120px" />
            <itemstyle width="120px" />
        </asp:BoundField>--%>
        <asp:BoundField DataField="StartDate" meta:resourcekey="bfStartDate" SortExpression="StartDate"
            DataFormatString="{0:yyyy/MM/dd}">
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="EndDate" meta:resourcekey="bfEndDate" SortExpression="EndDate"
            DataFormatString="{0:yyyy/MM/dd}">
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="PeopleRequired" meta:resourcekey="bfPeopleRequired" SortExpression="PeopleRequired">
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="Text" meta:resourcekey="bfText" SortExpression="Text"
            Visible="false">
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="<%$ Resources:VOrganizationName %>" SortExpression="VOrganizationName">
            <itemtemplate>
                <%#Eval("VOrganizationName") %>
            </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
 <%--       <asp:BoundField DataField="VolunteerID" HeaderText="<%$ Resources:VolunteerID %>"
            SortExpression="VolunteerID" />--%>
        <My:VolunteerIDBoundField DataField="VolunteerID" HeaderText="<%$ Resources:VolunteerID %>"
            ReadOnly="True" SortExpression="VolunteerID" />
        <asp:BoundField DataField="VolunteerName" HeaderText="<%$ Resources:VolunteerName %>"
            SortExpression="VolunteerName" />
            
        <asp:TemplateField>
            <headertemplate>
                <asp:Button ID="btnCancel" runat="server" meta:resourcekey="bfCancel" CommandName="btnCancel"></asp:Button>
                <asp:CheckBox ID="chkAll" runat="server" OnCheckedChanged="chkAll_CheckedChanged" AutoPostBack="true"></asp:CheckBox>                
        </headertemplate>
            <itemtemplate>
                <asp:CheckBox ID="chk" runat="server"></asp:CheckBox>
            <%--<asp:Button runat="server" meta:resourcekey="btnCancel" ID="btnCancel" CommandName="Update"></asp:Button>--%>
                    <asp:HiddenField runat="server" ID="hideStatus" value='<%# Eval("Status") %>'></asp:HiddenField>
        </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="BLL_Select" TypeName="BLL_SearchEnlistRecord" UpdateMethod="BLL_Update">
    <UpdateParameters>
        <asp:Parameter Name="original_ApplicationID" Type="Int32" />
    </UpdateParameters>
    <SelectParameters>
        <asp:Parameter Name="CreateBy" Type="String" />
        <asp:Parameter Name="TrainingWHour" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
